//
//  YFLogisticsCell.m
//  QuanJieShopProject
//
//  Created by apple on 2018/5/28.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "YFLogisticsCell.h"

@implementation YFLogisticsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.circleView.layer.cornerRadius = self.circleView.mj_w/2;
    self.titleLabel.textAlignment = NSTextAlignmentLeft;
}

+ (instancetype)cellWithTableView:(UITableView *)tableView {
    static NSString *cellID = @"YFLogisticsCellID";
    YFLogisticsCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID];
    if (!cell) {
        cell = [[[NSBundle mainBundle] loadNibNamed:@"YFLogisticsCell" owner:self options:nil] firstObject];
//        [[YFLogisticsCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellID];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return cell;
}


- (void)setModel:(YFLogisticsModel *)model {
    _model = model;
    
    self.titleLabel.text = model.status;
    self.timeLabel.text = model.time;
    
//    // 重新计算高度
//    CGSize size = [YFGlobalTool sizeWithString:self.titleLabel.text font:self.titleLabel.font maxSize:CGSizeMake(self.titleLabel.frame.size.height, 0)];
//    self.titleH.constant = size.height;
    
//    self.height = CGRectGetMaxY(self.timeLabel.frame) + 10;
    
}



@end
